﻿@{
    ViewBag.Title = "AdminMessage";
}
@using BLL;
@using Entity;
<style type="text/css">
    .aa {
        background-color: #808080;
        height: 50px;
        line-height: 50px;
        text-align: center;
    }

    td {
        text-align: center;
    }

    th {
        width: 180px;
    }
</style>
<form action="../Admin/AdminMessage" method="post">
    <table border="1" cellspacing="0">
        <tr>
            <th colspan="7">
                <h2 class="aa">系统用户列表</h2>
            </th>
        </tr>
        <tr>
            <th>编号</th>
            <th>用户名</th>
            <th>密码</th>
            <th>类别</th>
            <th>修改</th>
            <th>删除</th>
        </tr>
        @foreach (var item in ViewBag.tt)
        {
            <tr>
                <td>@item.UserId</td>
                <td>@item.UserName</td>
                <td>@item.UserPwd </td>
                <td>@(item.UserPower == 1 ? "管理员" : "Null")</td>
                <td><a href="/Admin/MyMessage?UserId=@item.UserId">修改</a></td>
                <td><a href="/Admin/AdminMessagee?UserId=@item.UserId">删除</a></td>
            </tr>
        }
    </table>
</form>
